package
core{
/**
 * 返利策略
 * 让利200元后打七折
 * @author daichangxin
 */
public class RebateStrategy implements IStrategy
{
	public function countCost(price : Number) : Number
	{
		var result:Number = 0;
		if (price > 200)
		{
			result = price - 200;
		}
		
		return result * .7;
	}
}
}
